<template>
    <scroll-view
        scroll-y
        class="flatList"
        :refresher-triggered="refTarget"
        @scrolltolower="scrolltolower"
        @touchstart="touchstart"
        @touchmove="touchmove"
    >
        <!-- :refresher-enabled="isRefresh" -->
        <!-- 数据为空 -->

        <!-- 数据正常渲染 -->
        <!-- zujian{{flatList.length}}zujian -->
        <slot>
            <!-- <template v-for="(item, index) in flatList">
               
                <slot name="item" :item="item" :index="index"></slot>
            </template> -->
        </slot>
        <empty v-if="flatList.length == 0" />
        <view class="empty-more" v-if="flatList.length != 0">{{ hint }}</view>
    </scroll-view>
</template>

<script>
import mixins from "./mixins/index";
import empty from "@/components/empty/index.vue";
export default {
    mixins,
    components: {
        empty,
    },
};
</script>

<style scoped>
@import "./src/style.css";
</style>